#include "PDTExpBoolUn.h"
#include "PDTCodeGraph.h"


void PDTExpBoolUn::setOperand (PDTExpBool &operand){
	writers[0]=&operand;
	addChild(&operand);
	operand.addReader(this);
	operand.addParent(this);

}
PDTExpBool *PDTExpBoolUn::getOperand (){
	return dynamic_cast<PDTExpBool*>(writers[0]);
}


PDTExpBoolUn::PDTExpBoolUn(PDTCodeGraph & CG,PDTExpBool &operand):PDTExpBool(CG){
	addWriter(&operand);
	addChild(&operand);
	operand.addReader(this);
	operand.addParent(this);

}
